import { NUploadFileList } from "naive-ui";
import type { HTMLAttributes } from "vue";
export class UploadFileListFactory {
  private attrs: HTMLAttributes = {};
  constructor(
    data: {
      attrs?: HTMLAttributes;
    } = {}
  ) {
    if (data.attrs) this.setAttrs(data.attrs);
  }

  setAttrs(attrs: HTMLAttributes) {
    this.attrs = attrs;
    return this;
  }

  create() {
    return <NUploadFileList {...this.attrs}></NUploadFileList>;
  }
}
